package com.hczoop.utils.designPattern.liabilityChain;

public class hubei extends AbstractAction{
	
    public static String Type ="湖北";
	
	@Override
	public void todo(String type) {
		if(hubei.Type.equals(type)){
			System.out.println("我是湖北，我只处理湖北的业务");
		}else{
			Action action = this.getAction();
			if(action != null){
				action.todo(type);//交给下个链上对象处理
			}else{
				super.todo(type);
			}
		}
	}
}
